@extends('layouts.account')
@section('title')
    会员登录
@endsection

@section('content')
    <form action="{{ route('login.store') }}" method="post">
        @csrf
        <div class="card shadow">
            <div class="card-header">
                会员登录
            </div>
            <div class="card-body">

                <x-form title='账号' name='account' placeholder="请输入账号或邮箱"></x-form>

                <x-form type='password' title='密码' name='password' placeholder='请输入密码'></x-form>

                <x-form type='text' title='验证码' theme='captcha'></x-form>
                <div>
                    <label for="remember">
                        <input type="checkbox" name="remember" id="remember"> <span class="small" value="{{old('remember')}}">记住我</span>
                    </label>
                </div>

            </div>
            <div class="card-footer text-muted d-flex justify-content-between align-items-center ">
                <button class='btn btn-success'>登录</button>
                <div class="">
                    @if(Browser::isDesktop() || is_wechat()  && config('site.user.wechatweb_login') )
                    <a href="" class=""><i class="fa fa-weixin" aria-hidden="true"></i>微信登录</a>
                    @endif
                        <a href="{{ route('register') }}">注册</a> |
                    <a href='{{route('forgetpassword.create')}}'>找回密码</a>
                </div>
            </div>
        </div>
    </form>
@endsection
